package com.ng.desktop;

import javax.swing.JFrame;
import javax.swing.UIManager;

import com.ng.desktop.expansionsa.services.NGFactoryBean;
import com.ng.desktop.expansionsa.view.FrameContainer;

/**
 * Hello world!
 *
 */
public class App 
{
	public App() {

		// Create the context
		NGFactoryBean ngFactoryBean = NGFactoryBean.getInstance();
		
		FrameContainer frame = (FrameContainer) ngFactoryBean.getBean("frameContainer");
		
		frame.setVisible(true);
		frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
	}

	// Main method
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e) {
			e.printStackTrace();
		}
		new App();
	}
}
